import { useParams } from 'react-router-dom'
function UserDetail() {
    const params = useParams()
    return <>
        <h1>这是UserDetail</h1>
        <h2>当前用户的id为：{params.id}</h2>
    </>
}

export default UserDetail;